package changeEmployeeTransaction.changeClassificationTransaction;

import classification.HourlyClassification;
import classification.PaymentClassification;
import schedule.PaymentSchedule;
import schedule.WeeklySchedule;
import database.PayrollDatabase;

public class ChangeHourlyTransaction extends
		ChangeClassificationTransaction {
	private double hourlyRate;

	public ChangeHourlyTransaction(int id, double hourlyRate,
			PayrollDatabase database) {
		super(id, database);
		this.hourlyRate = hourlyRate;
	}

	@Override
	protected PaymentClassification getClassification() {
		return new HourlyClassification(hourlyRate);
	}

	@Override
	protected PaymentSchedule getSchedule() {
		return new WeeklySchedule();
	}
}
